<script setup lang="ts">
import { useAppStore } from "@/store/modules/app";
import { useSettingsStore } from "@/store/modules/settings";
import watermark from "@/hooks/watermarks";

import { storeToRefs } from "pinia";
const appStore = useAppStore();
const settingsStore = useSettingsStore();
const watermarkEnabled = storeToRefs(settingsStore);
if (watermarkEnabled) {
  watermark.set(
    {
      text: "3333333",
      opacity: 0.08,
      color: "#409eff",
    },
    true
  );
}
</script>

<template>
  <el-config-provider :locale="appStore.locale" :size="appStore.size">
    <!-- <el-watermark class="waterMark" style="width: 100%"> -->
    <router-view />
    <!-- </el-watermark> -->
  </el-config-provider>
</template>
